﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.Archetype;
using Happy.Domain.CommonModel.TreeLike;
using Happy.Cms.Domain.Services;
using Happy.Cms.Domain.Shares;

namespace Happy.Cms.Domain.Categories
{
    [DomainModel, Description]
    public sealed class Category : TreeNode<Guid>
    {
        private Category()
        {
        }

        public Category(Guid id)
            : base(id)
        {
            this.SeoInfo = new SeoInfo();
        }

        public Category(Guid id, Category parent)
            : base(id, parent)
        {
            this.SeoInfo = new SeoInfo();
        }

        public string Name { get; set; }

        public SeoInfo SeoInfo { get; private set; }

        public int Order { get; set; }
    }
}
